package com.fg.pro.model.sys.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;

/**
 * 角色-菜单(SysRoleMenu)表实体类
 *
 * @author makejava
 * @since 2025-07-17 10:10:47
 */
@SuppressWarnings("serial")
@Data
public class SysRoleMenu extends Model<SysRoleMenu> {
//主键id
    private Long id;
//角色主键
    private Long roleId;
//菜单主键
    private Long menuId;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public Long getMenuId() {
        return menuId;
    }

    public void setMenuId(Long menuId) {
        this.menuId = menuId;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    public Serializable pkVal() {
        return this.id;
    }
}

